import React from 'react';
import {Switch,Route,BrowserRouter,Redirect} from "react-router-dom";
import Login from "./pages/login/Login"
import Admin from "./pages/admin/Admin"
function App() {
  return (
    <BrowserRouter className="App">
        <Switch>
            <Route path="/login" component={Login}></Route>
            <Route path="/admin" component={Admin}></Route>
            <Redirect to="/login"></Redirect>
        </Switch>
    </BrowserRouter>
  );
}

export default App;
